import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import echarts from './views/charts/echarts.vue'


let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '首页',
        leaf: true,//只有一个节点
        iconCls: 'el-icon-s-home',
        children: [
            { path: '/', component: echarts, name: '首页'}
        ]
    },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '系统管理',
    //     iconCls: 'el-icon-monitor',//图标样式class
    //     children: [
    //         { path: '/log', component: log, name: '操作日志'},
    //         { path: '/permission', component: permission, name: '权限管理'},
    //         { path: '/menu', component: menu, name: '菜单管理'},
    //         { path: '/role', component: role, name: '角色管理' },
    //         { path: '/employee', component: employee, name: '员工信息管理'},
            
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '用户管理',
    //     iconCls: 'el-icon-monitor',//图标样式class
    //     children: [
    //         { path: '/user', component: user, name: '用户信息管理'},
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '博客管理',
    //     iconCls: 'el-icon-monitor',//图标样式class
    //     children: [
    //         { path: '/article', component: article, name: '文章管理'},
    //         { path: '/articleType', component: articleType, name: '文章类型管理'},
    //         { path: '/friendAddress', component: friendAddress, name: '友情链接管理'},
    //         { path: '/paramManager', component: paramManager, name: '参数管理'},
    //     ]
    // },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;
